package 蓝桥.十四届;

/**
 * @author ZhuYi
 * @create 2025/2/20 20:38
 */
public class A阶乘求和 {
    public static void main(String[] args) {
        long jie = 1, sum = 0;
        for (int i = 1; i <= 200; i++) {
            jie *= i;
            sum += jie;
            jie %= 1e9;
            sum %= 1e9;
        }
        System.out.println(sum);
    }
}
